package com.github.chenxing2.demo.client.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.github.chenxing2.demo.api.IMotanDemo;
import com.weibo.api.motan.config.springsupport.annotation.MotanReferer;

@RestController
public class DemoController {

	@MotanReferer
	private IMotanDemo motanDemo;

	@RequestMapping("/say/{msg}")
	public String say(@PathVariable String msg) {
		return motanDemo.say(msg);
	}
}
